import request from '@/utils/request'

// 查询订单充值列表
export function listOrder(query) {
  return request({
    url: '/system/order/list',
    method: 'get',
    params: query
  })
}

// 查询订单充值所有列表
export function listAllOrder(query) {
  return request({
    url: '/system/order/listAll',
    method: 'get',
    params: query
  })
}

// 查询订单充值详细
export function getOrder(id) {
  return request({
    url: '/system/order/getInfo/' + id,
    method: 'get'
  })
}

// 新增订单充值
export function addOrder(data) {
  return request({
    url: '/system/order/add',
    method: 'post',
    data: data
  })
}

// 修改订单充值
export function updateOrder(data) {
  return request({
    url: '/system/order/edit',
    method: 'post',
    data: data
  })
}

// 删除订单充值
export function delOrder(id) {
  return request({
    url: '/system/order/remove/' + id,
    method: 'get'
  })
}
